<template>
  <div class="widget">
    <p class="default-info">
      <strong>名称：</strong>
      {{ name }}
    </p>
    <p class="default-info">
      <strong>创建时间：</strong>
      {{ formatTime(createTime) }}
    </p>
    <p class="default-info">
      <strong>说明：</strong>
      {{ description }}
    </p>
  </div>
</template>
<script>
import { formatTime } from '@/utils/tool'
export default {
  props: { },
  data() {
    return {
      value: '',
      label: '',
      name: '',
      description: '',
      createTime: '',
    };
  },
  methods: {
    formatTime (str) {
      return formatTime(str)
    }
  },
  mounted () {
    let graphRow = JSON.parse(sessionStorage.getItem('graphRow'))
    this.name = graphRow.name
    this.description = graphRow.description
    this.createTime = graphRow.createTime
  }
};
</script>

<style lang="less" scoped>

.widget{
  padding-bottom: 20px;
}
.default-info{
  padding: 10px 0;
  line-height: 24px;
}
</style>
